home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / Xconq 7.0d37 / doc / Makefile.in < prev    next >
Makefile  |  1995-05-04  |  2KB  |  94 lines

  1. # Makefile for Xconq documentation.
  2. # Copyright (C) 1993, 1994 Stanley T. Shebs.
  3.  
  4. # Xconq is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. prefix = .
  10.  
  11. srcdir = .
  12.  
  13. SHELL = /bin/sh
  14.  
  15. CC = cc
  16.  
  17. CFLAGS = -g
  18.  
  19. TEX = tex
  20.  
  21. TEXINDEX = texindex
  22.  
  23. # Where to find texinfo; dist should include a recent one.
  24.  
  25. TEXIDIR = .
  26.  
  27. SET_TEXINPUTS = TEXINPUTS=${TEXIDIR}:.:$(srcdir):$$TEXINPUTS
  28.  
  29. # Pretty output for your favorite fancy printer.
  30.  
  31. #TROFFER = psroff
  32. #PRINTER = csps
  33.  
  34. DOCFILES = $(srcdir)/xconq.texi \
  35.        $(srcdir)/play.texi \
  36.        $(srcdir)/design.texi \
  37.        $(srcdir)/refman.texi \
  38.        $(srcdir)/hacking.texi \
  39.        $(srcdir)/glossary.texi \
  40.        $(srcdir)/syntax.texi \
  41.  
  42. # Host and target-dependent makefile fragments come in here.
  43. ####
  44. # End of host and target-dependent makefile fragments.
  45.  
  46. .c.o:
  47.     $(CC) -c $(ALL_CFLAGS) $<
  48.  
  49. all:
  50.  
  51. install:
  52.  
  53. install-only:
  54.  
  55. dvi: quickref.dvi xconq.dvi
  56.  
  57. quickref.dvi: $(srcdir)/quickref.texi syms.texi
  58.     $(SET_TEXINPUTS) $(TEX) $(srcdir)/quickref.texi
  59.  
  60. syms.texi: syms.raw kwic
  61.     ./kwic -dots -pad -breakup <syms.raw >syms.texi
  62.  
  63. syms.raw: $(srcdir)/getsyms.sh $(srcdir)/refman.texi
  64.     $(srcdir)/getsyms.sh $(srcdir)/refman.texi >syms.raw
  65.  
  66. xconq.dvi:    $(DOCFILES)
  67.     $(SET_TEXINPUTS) $(TEX) $(srcdir)/xconq.texi
  68.     $(TEXINDEX) xconq.??
  69.     $(SET_TEXINPUTS) $(TEX) $(srcdir)/xconq.texi
  70.  
  71. html:
  72.     $(srcdir)/texi2html -split_node -glossary -menu -verbose $(srcdir)/xconq.texi
  73.  
  74. kwic:    kwic.o
  75.     $(CC) $(CFLAGS) -o kwic kwic.o
  76.  
  77. clean:
  78.     rm -f *.dvi
  79.     rm -f *.o
  80.     rm -f kwic
  81.  
  82. distclean: clean
  83.     rm -f *.aux *.log *.toc
  84.     rm -f *.cp* *.fn* *.ky* *.pg* *.tp* *.vr*
  85.     rm -f Makefile config.status
  86.  
  87. extraclean: distclean
  88.     rm -f *~* .*~*
  89.  
  90. realclean: distclean
  91.  
  92. Makefile: Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  93.     $(SHELL) config.status
  94.